package com.vita.core.device.input;

import com.vita.Exception.IcoCheck;
import com.vita.common.FileUtils;
import com.vita.core.function.Func;

public class TxtInput implements Func{

    @Override
    public Object apply(Object t) {
        String filename = (String)t;
        IcoCheck.isFalseException(FileUtils.isTxtFile(filename),"非txt文件");
        return FileUtils.getList((String)t);
    }
    
}
